import request from '@/utils/request'


export function saveTeacher(course) {
  return request({
    url: `/service-edu/DongBing/edu-subject/CourseSave`,
    method: 'post',
    data: course
  })
}
export function updateCoursePlus(course) {
  return request({
    url: `/service-edu/DongBing/edu-subject/updateCourse`,
    method: 'post',
    data: course
  })
}


export function getChapterAndVideo(id) {
  return request({
    url: `/service-edu/DongBing/edu-subject/findByIdCourse/${id}`,
    method: 'get'
  })
}

export function CoursePage(current,size,Condition) {
  return request({
    url: `/service-edu/DongBing/edu-subject/CoursePage/${current}/${size}`,
    method: 'get',
    params: Condition
  })
}

export function CourseDelete(id) {
  return request({
    url: `/service-edu/DongBing/edu-subject/CourseDelete/${id}`,
    method: 'get'
  })
}

export function publishCourse(id) {
  return request({
    url: `/service-edu/DongBing/edu-subject/update/${id}`,
    method: 'get'
  })
}

export function getPublihCourseInfo(id) {
  return request({
    url: '/service-edu/DongBing/edu-subject/getPublishCourseInfo/'+id,
    method: 'get'
  })
}


